package com.example.demo.sqlInjector;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.metadata.TableInfo;
import org.apache.ibatis.executor.keygen.NoKeyGenerator;
import org.apache.ibatis.mapping.MappedStatement;

import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Collection;

public class JoinSqlMethod extends AbstractMethod {

//    @Override
//    public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, TableInfo tableInfo) {
//        Method[] methods =  mapperClass.getMethods();
//        Collection<String> strings = this.configuration.getMappedStatementNames();
//        for (Method method:methods){
//           if(!strings.contains(method.getName())){
//               System.out.println(method.getName()+"====》");
//           }
//        }
//        return null;
//    }

    @Override
    public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, TableInfo tableInfo) {
    return null;
//        return this.addInsertMappedStatement(mapperClass, modelClass, "mysqlInsertAllBatch", sqlSource, new NoKeyGenerator(), null, null);
    }

}
